package com.doudou.oauth.validate.image;

import com.doudou.oauth.validate.ValidateCode;
import lombok.Data;

import java.awt.image.BufferedImage;
import java.time.LocalDateTime;

/**
 * @Author: 傻男人
 * @Date: 2020/5/21 15:27
 * @Version: 1.0
 * @Description: 图片验证码
 */
@Data
public class ImageCode extends ValidateCode {

    private BufferedImage image;
	
	public ImageCode(BufferedImage image, String code, int expireIn){
		super(code, expireIn);
		this.image = image;
	}
	
	public ImageCode(BufferedImage image, String code, LocalDateTime expireTime){
		super(code, expireTime);
		this.image = image;
	}

}